Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Determining Vector Dot Products


Q3Vector3D_Dot

You can use the Q3Vector3D_Dot function to determine the dot product of two three-dimensional vectors.

float Q3Vector3D_Dot (
const TQ3Vector3D *v1, 
const TQ3Vector3D *v2);
v1
A three-dimensional vector.
v2
A three-dimensional vector.
DESCRIPTION
The Q3Vector3D_Dot function returns, as its function result, a floating-point value that is the dot product of the two vectors v1 and v2.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996